package error_code

/*
10000 请求参数错误
10001 数据库错误
10002 系统错误

20101 utoken失效(401)
20102 没有权限(403)
20201 取http源数据有错
*/
const (
	Success   = 0
	MsSuccess = "OK"

	//system
	System   = 10002
	MsSystem = "系统错误"

	// Parameter
	RequestParameter = 10100
	MsRequest        = "请求参数错误"

	UnActivation   = 10110
	MsUnActivation = "账号没激活"

	// data
	Database           = 11001
	MsDatabase         = "数据库操作不成功"
	DataInfoNull       = 11002
	MsDataInfoNull     = "信息不存在"
	DatabaseAdd        = 11003
	MsDatabaseAdd      = "数据库添加操作不成功"
	DatabaseEdit       = 11004
	MsDatabaseEdit     = "数据库更新操作不成功"
	DatabaseRepeatDo   = 11005
	MsDatabaseRepeatDo = "重复操作"

	// power
	TokenExpired  = 20101
	MsUserExpired = "用户的utoken失效"
	Refuse        = 20102
	MsRefuse      = "没操作权限"
	GetToken      = 20103
	MsGetUser     = "获取用户utoken错误"
	// power
	CMSPower = 10011 // 账号有误,账号无权限

	// http
	HTTPSourceData = 21001
)
